package com.jiehoo.elove.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.jiehoo.elove.constant.Blood;
import com.jiehoo.elove.constant.Education;
import com.jiehoo.elove.constant.Income;
import com.jiehoo.elove.constant.Profession;
import com.jiehoo.elove.constant.Sex;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class User extends Base implements Serializable {
	private static final long serialVersionUID = -7653895154012774556L;
	@Persistent
	private String name;
	@Persistent
	private Sex sex;
	@Persistent
	private Date birthday;
	@Persistent
	private int height;
	@Persistent
	private int weight;
	// optional
	@Persistent
	private Blood blood;
	@Persistent
	private Profession profession;
	@Persistent
	private Education education;
	@Persistent
	private Income income;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public Blood getBlood() {
		return blood;
	}

	public void setBlood(Blood blood) {
		this.blood = blood;
	}

	public Profession getProfession() {
		return profession;
	}

	public void setProfession(Profession profession) {
		this.profession = profession;
	}

	public Education getEducation() {
		return education;
	}

	public void setEducation(Education education) {
		this.education = education;
	}

	public Income getIncome() {
		return income;
	}

	public void setIncome(Income income) {
		this.income = income;
	}

}
